import {
    createApp
} from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import instance from "./axios/index"

// 公共css
import "./base.css"
// 原型挂载

const test = () => {
    console.log('我是测试函数触发的');
    return '测试成功！';
};

    // 页面中使用
// import { onMounted, reactive, toRefs, getCurrentInstance } from "vue";
// const { proxy } = getCurrentInstance(); //获取this实例
// console.log(proxy.$Test, "这是原型的");





let app = createApp(App);

app.config.globalProperties.$Test = test;
app.config.globalProperties.$instance = instance;
app.use(store).use(router).use(ElementPlus).mount("#app");